package com.giao.mapper;

import com.giao.pojo.FactoryC;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FactoryMapper {

    //查询全部
    List<FactoryC> findAllFactory();

    //删除
    int deleteFactory(@Param("factory_id") int id);

    //添加
    int insertFactory(FactoryC factoryC);

    //修改
    int updateFactory(FactoryC factoryC);

    //查一个
    FactoryC FactoryById(@Param("factory_id") int id);

    /*状态修改*/
    int updatestartok(Integer factory_id);

    int updatestartno(Integer factory_id);

    /*批量删除*/
    int deleteFactoryC(@Param("factory_id") Integer factory_id);
}
